<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h2>Django模板中的过滤器</h2>
<p>{{ user.username }}</p>
<p>{{ user.username | upper }}</p>
<p>{{ user.username | lower }}</p>
<p>{{ user.username | length }}</p>
<p>{{ user.email }}</p>
<p>{{ user.birth | date:'Y-m-d' }}</p>
<p>{{ user.birth | date:'Y-m-d H:i:s' }}</p>

</body>
</html>